import 'package:flutter/material.dart';

import '../widgets/text_button.dart';

textButton(String text,
    {double width = 90, double height = 35, Function? onPressed}) {
  return Container(
      margin: EdgeInsets.only(left: 15, right: 20, top: 10, bottom: 10),
      alignment: Alignment.center,
      child: MyTextButton(
          width: width,
          height: height,
          text: text,
          confirm: () {
            onPressed?.call();
          },
          backgroundColor: Colors.deepPurpleAccent,
          textStyle: TextStyle(color: Colors.white, fontSize: 13)));
}
